from django.conf.urls import url, include
# from users import views
from . import views
urlpatterns = [

    # 1.用户信息:获取和修改
    url(r'^info/$', views.UserInfoView.as_view(), name='user_info'),

    # 2.点击修改图片修改头像
    url(r'^image/upload/$', views.ImageUploadView.as_view(), name='image_upload'),

    # 3.用户课程
    url(r'^mycourse/$', views.MyCourseView.as_view(), name='mycourse'),

    # 4.用户收藏表
    url(r'^myfav/org/$', views.MyFavOrgView.as_view(), name='myfav_org'),

    # 5.授课教师
    url(r'^myfav/teacher/$', views.MyFavTeacherView.as_view(), name='myfav_teacher'),

    # 6.公开课程
    url(r'^myfav/course/$', views.MyFavCourseView.as_view(), name='myfav_course'),

    # 7.用户消息
    url(r'^mymessage/$', views.MyMessageView.as_view(), name='mymessage'),


    #  登录页面显示
    url(r'^login/$', views.LoginView.as_view(), name='login'),

    #  注册页面显示
    url(r'^register/$', views.RegisterView.as_view(), name='register'),

    # 首页
    url(r'^$', views.IndexView.as_view(), name="index"),


    # 忘记密码
    url(r'^forget/$', views.ForgetPwdView.as_view(), name='forget_pwd'),

    # #修改密码
    url(r'^reset/(?P<active_code>.*)/$', views.ResetView.as_view(), name='reset_pwd'),

    # 提交新密码
    url(r'^modify/$', views.ModifyView.as_view(), name='modify_pwd'),
]
